<?php

namespace App\Models\Admin;

use App\Models\Organ\OrganModel;
use App\Models\System\SystemModel;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;


class AdminModel extends Authenticatable
{
    use Notifiable;

    protected $connection = "mysql";

    protected $table = "admin";

    protected $hidden = [
        'password',
        'remember_token'
    ];

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'id', 'admin_name','username', 'status', 'role_id', 'login_time', 'login_ip', 'created_at', 'updated_at'
    ];

    public static $columns = [
        'id', 'admin_name','username', 'password', 'status',  'role_id', 'login_time', 'login_ip', 'created_at', 'updated_at'
    ];

    protected $casts = [
        'id' => 'integer',
        'status' => 'integer',
    ];
}
